import BaseEntity from './BaseEntity'
import UserQuestionAnswer from './UserQuestionAnswer'

class UserQuestion extends BaseEntity {
  constructor ({
    id = '',
    content = '',
    maxScore = 0,
    questionId = 0,
    userQuestionAnswers = []
  }) {
    super({id})

    this.content = content
    this.maxScore = maxScore
    this.questionId = questionId
    this.userQuestionAnswers = userQuestionAnswers.map(v => new UserQuestionAnswer(v))
  }
}

export default UserQuestion
